package com.yingxue.lesson;

import com.yingxue.lesson.utils.PasswordUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @author lai
 * @version 1.0
 * @date 2021/5/19 22:34
 */
@SpringBootTest
@RunWith(SpringRunner.class)
public class test2 {

    @Test
    public void a(){
        String salt= PasswordUtils.getSalt();
        String ecdPwd=PasswordUtils.encode("123456",salt);
        System.out.println(salt);
        System.out.println(ecdPwd);
    }
}
